<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>订单列表</title>
	<meta name="description" content="Static & Dynamic Tables" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<!-- basic styles -->
	<script type='text/javascript' src='http://localhost/qm_shop/hdphp/hdphp/../hdjs/jquery-1.8.2.min.js'></script>
<link href='http://localhost/qm_shop/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/qm_shop/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/qm_shop/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/qm_shop/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/qm_shop';
		WEB = 'http://localhost/qm_shop/index.php';
		URL = 'http://localhost/qm_shop/index.php/Admin/Order/index';
		HDPHP = 'http://localhost/qm_shop/hdphp/hdphp';
		HDPHPDATA = 'http://localhost/qm_shop/hdphp/hdphp/Data';
		HDPHPTPL = 'http://localhost/qm_shop/hdphp/hdphp/Lib/Tpl';
		HDPHPEXTEND = 'http://localhost/qm_shop/hdphp/hdphp/Extend';
		APP = 'http://localhost/qm_shop/index.php/Admin';
		CONTROL = 'http://localhost/qm_shop/index.php/Admin/Order';
		METH = 'http://localhost/qm_shop/index.php/Admin/Order/index';
		GROUP = 'http://localhost/qm_shop/./Qmshop';
		TPL = 'http://localhost/qm_shop/./Qmshop/App/Admin/Tpl';
		CONTROLTPL = 'http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Order';
		STATIC = 'http://localhost/qm_shop/Static';
		PUBLIC = 'http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public';
		HISTORY = 'http://localhost/qm_shop/index.php/Admin/Index/index';
		HTTPREFERER = 'http://localhost/qm_shop/index.php/Admin/Index/index';
</script>
	<link href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/bootstrap.min.css" rel="stylesheet" />
	<link href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/bootstrap-responsive.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/font-awesome.min.css" />
	<!--[if IE 7]>
	  <link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/font-awesome-ie7.min.css" />
	<![endif]-->
	<!-- page specific plugin styles -->
	
	<!-- ace styles -->
	<link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/ace.min.css" />
	<link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/ace-responsive.min.css" />
	<link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/ace-skins.min.css" />
	<!--[if lt IE 9]>
	  <link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/ace-ie.min.css" />
	<![endif]-->
</head>
<body>

	<div class="container-fluid" id="main-container">

		<!-- PAGE CONTENT BEGINS HERE -->
		<div class="row-fluid">
			<div class="table-header">
				订单管理 | <a style="font-size:14px;" href="<?php echo U('Order/index');?>">订单列表</a>
			</div>
			<table id="table_report" class="table table-striped table-bordered table-hover">
				<thead>
					<tr pid=0>
						<th class="center">
							<label><input type="checkbox" /><span class="lbl"></span></label>
						</th>
						<th class="hidden-480">OID</th>
						<th>下单时间</th>
						<th class="hidden-phone">收货人</th>
						<th>总金额</th>
						<th class="hidden-480">订单状态</th>
						<th style="width:120px;">操作</th>
					</tr>
				</thead>
								
				<tbody>
					<?php if(is_array($order)):?><?php  foreach($order as $value){ ?>
						<tr>
							<td class='center'>
								<label><input type='checkbox' /><span class="lbl"></span></label>
							</td>
							<td class='hidden-480'><?php echo $value['oid'];?></td>
							<td><?php echo hd_date($value['oorder_time']);?></td>
							<td><?php echo $value['oconsignee'];?> [TEL:<?php echo $value['ophone_cnee'];?>] <?php echo $value['oaddress'];?> <?php echo $value['ozipcode'];?></td>
							<td class='hidden-phone'><?php echo $value['ototal'];?></td>
							<td class='hidden-480 clogobox'>
							<?php  switch($value['ostate']):?>
<?php  case 1:{?><span class="label label-info arrowed-right arrowed-in">已提交,待付款</span><?php break;}?><?php  case 2:{?><span class="label label-success arrowed-right arrowed-in">已付款,待发货</span><?php break;}?><?php  case 3:{?><span class="label label-warning arrowed">已发货,待收货</span><?php break;}?><?php  case 4:{?><span class="label label-important arrowed arrowed-right">已收货,完结</span><?php break;}?>
							<?php endswitch;?>
							</td>
							<td style="width:120px;">
								<div class='hidden-phone visible-desktop btn-group'>
									<a href="<?php echo U('show_order',array('oid'=>$value['oid']));?>" class="btn btn-mini btn-info" data-rel="tooltip" data-placement="left"><i class="icon-flag"> 查看</i></a>
								</div>
							</td>
						</tr>
					<?php }?><?php endif;?>
				</tbody>
			</table>
		</div>
		<!-- PAGE CONTENT ENDS HERE -->
	
	</div><!-- #main-content -->
	

	<a href="#" id="btn-scroll-up" class="btn btn-small btn-inverse">
		<i class="icon-double-angle-up icon-only"></i>
	</a>
	<!-- basic scripts -->
	<script src="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/js/bootstrap.min.js"></script>
	<!-- page specific plugin scripts -->
	
	<script type="text/javascript" src="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/js/jquery.dataTables.min.js"></script>
	<script type="text/javascript" src="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/js/jquery.dataTables.bootstrap.js"></script>
	<!-- ace scripts -->
	<script src="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/js/ace-elements.min.js"></script>
	<script src="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/js/ace.min.js"></script>
	<!-- inline scripts related to this page -->
	
	<script type="text/javascript">
	$(function() {
		var oTable1 = $('#table_report').dataTable( {
		"aoColumns": [
	      { "bSortable": false },
	      null, null,null, null, null,
		  { "bSortable": false }
		] } );
		$('[data-rel=tooltip]').tooltip();
		})
	</script>
</body>
</html>